import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/debtor/liaison/` + url, ...arg)
export default {
	liaisonPage(data) {
		return request('pageList', data, 'post')
	},
	importLiaison(data) {
		return request('importLiaison', data, 'post')
	},
	addOrEditLiaison(data) {
		return request('addOrEdit', data, 'post')
	},
	getLiaisonPhoneById(id, isCatch) {
		return request('getLiaisonPhoneById/' + id + '?isCatch=' + isCatch, '', 'get')
	},
	deleteById(id) {
		return request('deleteById/' + id, '', 'get')
	},
	addPhoneTodayCallCount(liaison) {
		return request('addPhoneTodayCallCount/' + liaison, '', 'get')
	}
}
